package com.wd.tech.utils;


import com.wd.tech.bean.BeannerBean;
import com.wd.tech.bean.HomePageForDetailsBean;
import com.wd.tech.bean.MorvBean;
import com.wd.tech.bean.QueryInformationCommentListBean;
import com.wd.tech.bean.RecommendationDisplayBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author 时文豪
 * @description:
 * @date :2020/7/2 11:04
 */
public interface Apis {
     //轮播图展示
        //https://mobile.bwstudent.com/techApi/information/v1/bannerShow
    @GET("techApi/information/v1/bannerShow")
    //调取数据成功的方法进行赋值
    Observable<BeannerBean>getSuccessBeanner();
    //更多
    //https://mobile.bwstudent.com/techApi/information/v1/findAllInfoPlate
    @GET("techApi/information/v1/findAllInfoPlate")
    Observable<MorvBean>getMorvBean();
    //  5.2、资讯推荐展示列表(包含单独板块列表展示)
   // https://mobile.bwstudent.com/techApi/information/v1/infoRecommendList
    @GET("techApi/information/v1/infoRecommendList")
    Observable<RecommendationDisplayBean>getPlateBean(@Query("plateId") int plateId, @Query("page") int page, @Query("count") int count);
    //5.3、资讯详情展示
    //https://mobile.bwstudent.com/techApi/information/v1/findInformationDetails?id=65
    @GET("techApi/information/v1/findInformationDetails")
    Observable<HomePageForDetailsBean>getHomePageForDetails(@Query("id") int id);
    //5.9、查询资讯评论列表
    //https://mobile.bwstudent.com/techApi/information/v1/findAllInfoCommentList?infoId=1&page=1&count=10
    @GET("techApi/information/v1/findAllInfoCommentList")
    Observable<QueryInformationCommentListBean>getQueryInformationComment(@Query("infoId") int infoId, @Query("page") int page, @Query("count") int count);

}
